package com.cskaoyan.servlet;

//首页显示数据库中各类的数量

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.service.AdminDashboardService;
import com.cskaoyan.service.AdminDashboardServiceImpl;
import com.cskaoyan.util.ResponseUtil;
import lombok.SneakyThrows;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

//小组接口首先显示的实现
@WebServlet("/admin/*")
public class AdminDashboardServlet extends WdBaseServlet {

 AdminDashboardService adminDashboardService= new AdminDashboardServiceImpl();


    @SneakyThrows
    private void dashboard(HttpServletRequest request, HttpServletResponse response){



            Map<Object,Object> nums = adminDashboardService.getAllAdminDashboard();





             ResponseUtil.responseJson(response, BaseRespVo.ok(nums));


    }

}
